<script setup lang="ts">
// import Parent from './components/01-Parent.vue'
// import Ref from './components/03-Ref.vue'
// import Computed from './components/04-Computed.vue'
// import RefDom from './components/05-RefDom.vue'
// lodash官方可没有像axios一样，给我们提供类型声明文件，所以没有提示
// 有一个开源的作者，就把那些很古老的包，他写好了类型声明文件
// import lodash from 'lodash'
// var users = [
//   { user: 'barney', active: false },
//   { user: 'fred', active: false },
//   { user: 'pebbles', active: true }
// ]

// const res = lodash.findIndex(users, item => {
//   return item.user === 'pebbles'
// })
// console.log(res)
import ChannelNav from './components/ChannelNav.vue'
import ArticleList from './components/ArticleList.vue'
// import { ref } from 'vue'
// const channelId = ref(0)

// const getValue = (id: number) => {
//   channelId.value = id
// }
import Pinia from './components/06-Pinia.vue'
</script>

<template>
  <!-- <Parent /> -->
  <!-- <Ref /> -->
  <!-- <Computed /> -->
  <!-- <RefDom /> -->
  <!-- <ChannelNav :channelId="channelId" @changeChannelId="getValue" />
  <ArticleList :channelId="channelId" /> -->
  <!-- <Pinia /> -->
  <ChannelNav />
  <ArticleList />
</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
